//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
/*
 * zylonite.h: Zylonite specific defines
 *
 * Copyright (C) 2002 Intel Corporation (yu.tang@intel.com)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */

#ifndef BLOB_ARCH_ZYLONITE_H
#define BLOB_ARCH_ZYLONITE_H

/* Use FFUART */
#define USE_SERIAL1	1
#define TERMINAL_SPEED	baud_115200

#define BLOB_ABS_BASE_ADDR	(0x5c040000)

/* where do various parts live in RAM */
#define BLOB_RAM_BASE		(0x80200000)
#define KERNEL_RAM_BASE		(0x80008000)
//#define KERNEL_RAM_BASE		(0xa1000000)
#define PARAM_RAM_BASE		(0x80210000)
#define RAMDISK_RAM_BASE	(0x80600000)


/* and where do they live in flash */
#define BLOB_FLASH_BASE		(0x10000000)
#define BLOB_FLASH_LEN		(256 * 1024)
#define PARAM_FLASH_BASE	(BLOB_FLASH_BASE + BLOB_FLASH_LEN)
#define PARAM_FLASH_LEN		(0) /* no parameters */
#define KERNEL_FLASH_BASE	(PARAM_FLASH_BASE + PARAM_FLASH_LEN)
#define KERNEL_FLASH_LEN	(2 * 1024 * 1024)
#define LOAD_RAMDISK		0 /* load ramdisk into ram */
#define RAMDISK_FLASH_BASE	(KERNEL_FLASH_BASE + KERNEL_FLASH_LEN)
#define RAMDISK_FLASH_LEN	(4 * 1024 * 1024)


/* the position of the kernel boot parameters */
#define BOOT_PARAMS		(0x80000100)

/* the size (in kbytes) to which the compressed ramdisk expands */
#define RAMDISK_SIZE		(8 * 1024)

/* TFTP download RAM base */
#define TFTP_RAM_START 		(0x80008000)

/* SMC91c111 */
#define SMC_BASE		(0x14000300)

#endif
